package com.example.myapplication.model;

public class Word {
    public int id;
    public String en = "";
    public String vt = "";
    public String vi = "";
    public String n = "";
    public String adj = "";
    public String adv = "";
    public String conj = "";
    public String prep = "";
    public String pron = "";
    public String art = "";
    public String abbr = "";
    public String other = "";

    public String getTranslation() {
        String res = "";
        if(vt != null) res += "vt." + vt + "\n";
        if(vi != null) res += "vi." + vi + "\n";
        if(n != null) res += "n." + n + "\n";
        if(adj != null) res += "adj." + adj + "\n";
        if(adv != null) res += "adv." + adv + "\n";
        if(conj != null) res += "conj." + conj + "\n";
        if(prep != null) res += "prep." +  prep + "\n";
        if(pron != null) res += "pron." + pron + "\n";
        if(art != null) res += "art." + art + "\n";
        if(abbr != null) res += "abbr." + abbr + "\n";
        if(other != null) res += "other." + other + "\n";
        return res;
    }
}
